﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FluentNHibernate.Mapping;

namespace AssetAllocationSystem.Models.Mapping
{
    public class CompanyMapping : ClassMap<Company>
    {
        public CompanyMapping()
        {
            Table("Company");
            Id(a => a.Id);
            Map(a => a.Name);
            HasMany(a => a.Assets);
            HasMany(a => a.Employees);
        }
    }
}